package routes

import (
	"goserver/handlers"
	"goserver/models"
	"net/http"

	"go.mongodb.org/mongo-driver/mongo"
)

func SetupTrajectoryRoutes(db *mongo.Database, collectionName string) {
	trajectoryRepo := models.NewTrajectoryRepository(db, collectionName)
	trajectoryHandler := handlers.NewTrajectoryHandler(trajectoryRepo)
	http.HandleFunc("/trajectory/add", trajectoryHandler.AddTrajectory)

}
